package tqq.action.observer;

import java.util.ArrayList;
import java.util.List;

public class PaySubject implements Subject{
	private List<Observer> observer = new ArrayList<>();
	
	@Override
	public void addObserver(Observer observer) {
		this.observer.add(observer);
		
	}

	@Override
	public void removeObserver(Observer observer) {
		this.observer.remove(observer);
	}
	
	public void notify_(){
		for(Observer ob :observer){
			ob.update();
		}
	}
}
